package com.ly.hotel.broadcast;

import android.app.Activity;
import android.content.BroadcastReceiver; 
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;

public class PreSettingReceiver extends BroadcastReceiver{
    @Override  
    public void onReceive(Context context, Intent intent){  
        Log.e("startup", "别逼我");  
        String ip = intent.getStringExtra("serverip");
        SharedPreferences sp= context.getSharedPreferences("stb_player_history",Activity.MODE_PRIVATE); 
		SharedPreferences.Editor editor = sp.edit();
		//用putString的方法保存数据 
		editor.putString("server_ip", ip); 
		//提交当前数据 
		editor.commit(); 
    }  
}
